home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / std / c++ / 332 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.6 KB

  1. Path: engnews1.Eng.Sun.COM!taumet!clamage
  2. From: clamage@taumet.eng.sun.com (Steve Clamage)
  3. Newsgroups: comp.std.c++
  4. Subject: Re: basic_string& operator=(const basic_string&
  5. Date: 7 Feb 1996 15:57:12 GMT
  6. Organization: Bell-Northern Research
  7. Approved: clamage@eng.sun.com (comp.std.c++)
  8. Message-ID: <4fai4o$oto@engnews1.Eng.Sun.COM>
  9. References: <199602062335.SAA13298@novice.uwaterloo.ca>
  10. NNTP-Posting-Host: taumet.eng.sun.com
  11. Mime-Version: 1.0
  12. Content-Type: text/plain; charset="us-ascii"
  13. Content-Transfer-Encoding: 7bit
  14. X-Nntp-Posting-Host: bmtlh520.bnr.ca 
  15. X-Mailer: Mozilla 1.1 (X11; I; HP-UX A.09.05 9000/715) 
  16. X-Url: news:199602062335.SAA13298@novice.uwaterloo.ca 
  17. X-Lines: 20
  18. Content-Length: 708
  19.  
  20. My original posting was somewhat ill-posed.  What I really meant to say
  21. was that it seems to me that a counted pointer representation is to ruled
  22. out in practice because the DWP wording, in my opinion, prevents the
  23. representation to be shared in the only case that makes sense to share.
  24.  
  25. I interpret the phrase
  26.  
  27.      points at the first element  of  an
  28.      allocated  copy  of  the  the array
  29.      whose first element is  pointed  at
  30.      by str.data()
  31.                 ^^^^<--------- my 'wording' now
  32.  
  33. as meaning that if we had a string x without sharers then string y(x)
  34. would necessarily create another string without sharers.
  35.  
  36. -- 
  37. John Hickin      Nortel Technology, Montreal, Quebec
  38. (514) 765-7924   hickin@bnr.ca
  39.  
  40.  
  41. [ comp.std.c++ is moderated.  Submission address: std-c++@ncar.ucar.edu.
  42.   Contact address: std-c++-request@ncar.ucar.edu.  The moderation policy is
  43.   summarized in http://reality.sgi.com/employees/austern_mti/std-c++/policy.html
  44. ]
  45.